package net.maku.events.vo;

import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;

import net.maku.framework.common.utils.DateUtils;
import net.maku.system.entity.SysOrgEntity;

import java.util.Date;
import java.util.List;

/**
 * 知识竞赛活动
 *
 * @author 阿沐 babamu@126.com
 * @since 1.0.0 2025-03-22
 */
@Data
@Schema(description = "知识竞赛活动")
public class ActivityKnowledgeContestVO extends ActivityBaseJoinVO implements Serializable, TransPojo {
    private static final long serialVersionUID = 1L;

    @Trans(type = TransType.SIMPLE, target = SysOrgEntity.class, fields = "name", ref = "orgName")
    private Long orgId;

    @Schema(description = "主办单位")
    private String orgName;

    @Schema(description = "参与组织范围")
    private List<Long> joinOrgId;

    @Schema(description = "参与组织范围名称")
    private List<String> joinOrgName;

    @Schema(description = "活动标题")
    private String activityTitle;

    @Schema(description = "缩略图")
    private String thumbnail;

    @Schema(description = "背景图")
    private String bgImage;

    @Schema(description = "报名须知")
    private String registrationNotes;

    @Schema(description = "赛项简介")
    private String eventProfile;

    @Schema(description = "活动开始时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date activityStartTime;

    @Schema(description = "活动结束时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date activityEndTime;

    @Schema(description = "发布状态  0：停用   1：正常")
    private Integer status;

    @Schema(description = "租户ID")
    private Long tenantId;

    @Schema(description = "知识竞赛配置的题目")
    private List<ActivityContestQuestionVO> activityContestQuestionVOList;

    @Schema(description = "是否已经答题")
    private boolean alreadyAnswer;

    @Schema(description = "活动状态")
    private Integer activityStatus;

    @Schema(description = "置顶图片")
    private String topImg;
}